// HRKOptDialog.cpp : implementation file
//

#include "stdafx.h"
#include "HRKExportApp.h"
#include "HRKExport.h"
#include "HRKOptDialog.h"


// CHrkOptDialog dialog

IMPLEMENT_DYNAMIC(CHrkOptDialog, CDialog)

CHrkOptDialog::CHrkOptDialog(CWnd* pParent /*=NULL*/)
	: CDialog(CHrkOptDialog::IDD, pParent)
	, m_bExportAnim(FALSE)
	, m_bBuildStrips(TRUE)
	, m_bFullSample(FALSE)
{

}

CHrkOptDialog::~CHrkOptDialog()
{
}

void CHrkOptDialog::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Check(pDX, IDC_CHECK_ANIMATION, m_bExportAnim);
	DDX_Control(pDX, IDC_Coord_System, m_CoordSystem);
	DDX_Check(pDX, IDC_Build_Strips, m_bBuildStrips);
	DDX_Check(pDX, IDC_CHECK_FULLSAMPLE, m_bFullSample);
}


BEGIN_MESSAGE_MAP(CHrkOptDialog, CDialog)
	ON_BN_CLICKED(IDC_DEFAULT, &CHrkOptDialog::OnBnClickedDefault)
	ON_CBN_SELCHANGE(IDC_Coord_System, &CHrkOptDialog::OnCbnSelchangeCoordSystem)
END_MESSAGE_MAP()


// CHrkOptDialog message handlers

void CHrkOptDialog::OnBnClickedDefault()
{
	// TODO: Add your control notification handler code here
}

BOOL CHrkOptDialog::OnInitDialog()
{
	CDialog::OnInitDialog();

	// TODO:  Add extra initialization here

	m_CoordSystem.AddString("Direct3D");//0
	m_CoordSystem.AddString("OpenGL");//1
	m_CoordSystem.AddString("3DSMAX");//2
	
	m_iCoordSel = 1;

	m_CoordSystem.SetCurSel( 1);

	m_bExportAnim = CHrkExport::m_pInstance->m_myScene.m_bExportAnim;
	m_bFullSample = CHrkExport::m_pInstance->m_myScene.m_bFullSample;

	UpdateData( FALSE );

	return TRUE;  // return TRUE unless you set the focus to a control
	// EXCEPTION: OCX Property Pages should return FALSE
}

void CHrkOptDialog::OnCbnSelchangeCoordSystem()
{
	// TODO: Add your control notification handler code here

	m_iCoordSel = m_CoordSystem.GetCurSel();
}
